package com.af;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class AFMainActivity extends Activity
{
    private static String TAG = "Asteroids";
    
    private AFView _view;
    private TextView _textView;

    @Override
    protected void onCreate(Bundle instance)
    {
        super.onCreate(instance);
        
        Log.i(TAG, "Create AF activity");
        setContentView(R.layout.af_main_layoit);
        
        _view = (AFView)findViewById(R.id.af_view);
        _textView = (TextView)findViewById(R.id.text_view_info);
        
        _textView.setText("Hello World!");
    }

    @Override
    protected void onPause()
    {
        super.onPause();
        
        Log.i(TAG, "AF activity is paused");
        _view.onPause();
    }

    @Override
    protected void onResume()
    {
        super.onResume();
        
        Log.i(TAG, "AF activity is resumed");
        _view.onResume();
    }
}
